//
// Created by bjliuyong on 2021/7/13.
//

#ifndef JVM_KLASS_H
#define JVM_KLASS_H

#include "utilities/top.h"

class Klass {

protected:
    u2              _minor_version;        // minor version number of class file
    u2              _major_version;        // major version number of class file
    
    // Access flags. The class/interface distinction is stored here.
    AccessFlags _access_flags;  

public:
    // minor and major version numbers of class file
    u2 minor_version() const                 { return _minor_version; }
    void set_minor_version(u2 minor_version) { _minor_version = minor_version; }
    u2 major_version() const                 { return _major_version; }
    void set_major_version(u2 major_version) { _major_version = major_version; }

    // Access flags
    AccessFlags access_flags() const         { return _access_flags;  }
    void set_access_flags(AccessFlags flags) { _access_flags = flags; }
};

#endif //JVM_KLASS_H
